package com.luculent.conf;

import java.io.File;

import org.springframework.util.ResourceUtils;

import com.luculent.utils.PathUtil;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
/**
 * 项目名称：
 * 修改日期：2015/11/2
*/
public class Const {
	
	private Const() {}  
	public static final String FILEPATHIMG = "uploadFiles/uploadImgs/";	//图片上传路径
	public static final String FILEPATHFILE = "uploadFiles/file/";		//文件上传路径
	public static final String FILEPATHTWODIMENSIONCODE = "uploadFiles/twoDimensionCode/"; //二维码存放路径
	public static final Config ROOTCONFIG = ConfigFactory.load("conf/config.conf").getConfig("config");
	public static final String PROFILES = ROOTCONFIG.getString("Profiles");
	   
	public static final Config ATTACH_CONFIG=ROOTCONFIG.getConfig("ATTACHMENTS");
	/**附件host**/
	public static final String ATTACHMENTS_HOST=ATTACH_CONFIG.getString("ATTACHMENTS_HOST");
	/**服务器附件存储地址**/
	public static final String ATTACHMENTS_LOCAL_PATH=ATTACH_CONFIG.getString("ATTACHMENTS_LOCAL_PATH");
	/**服务器附件服务名**/
	public static final String ATTACHMENTS_SERVERNAME = ATTACH_CONFIG.getString("ATTACHMENTS_SERVERNAME");
	 
}
